![]() |
ALMaSS
1.0
The Animal, Landscape and Man Simulation System
|
#include <skylarks_all.h>
Public Member Functions | |
Skylark_Female (int x, int y, double size, int age, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) | |
virtual void | ReInit (int x, int y, double size, int age, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) |
virtual void | BeginStep (void) |
BeingStep behaviour - must be implemented in descendent classes. More... | |
virtual void | Step (void) |
Step behaviour - must be implemented in descendent classes. More... | |
virtual void | EndStep (void) |
EndStep behaviour - must be implemented in descendent classes. More... | |
void | EstablishTerritory () |
int | Supply_NestTime () |
Skylark_Clutch * | SupplyMyClutch () |
int | Supply_BreedingAttempts () |
int | Supply_BreedingSuccess () |
void | ResetBreedingSuccess () |
void | OnSetMyClutch (Skylark_Clutch *p_C) |
void | OnEggsHatch () |
void | OnClutchDeath () |
void | OnBroodDeath () |
void | OnBreedingSuccess () |
void | OnStopFeedingChicks () |
void | OnMateDying () |
void | OnMateHomeless () |
void | OnMaleNeverComesBack (Skylark_Male *AMale) |
void | OnBreedSuccess () |
void | SensibleCopy () |
![]() | |
Skylark_Adult (int x, int y, double size, int age, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) | |
virtual | ~Skylark_Adult () |
virtual void | CopyMyself (int a_sktype) |
![]() | |
Skylark_Base (int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) | |
virtual void | ReInit (int x, int y, SkTerritories *Terrs, Landscape *L, Skylark_Population_Manager *SPM, int bx, int by, int mh) |
virtual double | On_FoodSupply (double) |
void | AddStriglingMort (int lifestage) |
virtual int | WhatState () |
bool | InSquare (rectangle R) |
![]() | |
unsigned | SupplyFarmOwnerRef () |
AnimalPosition | SupplyPosition () |
APoint | SupplyPoint () |
int | SupplyPolygonRef () |
int | Supply_m_Location_x () |
int | Supply_m_Location_y () |
virtual void | KillThis () |
virtual void | CopyMyself () |
void | SetX (int a_x) |
void | SetY (int a_y) |
TAnimal (int x, int y, Landscape *L) | |
virtual void | ReinitialiseObject (int x, int y, Landscape *L) |
Used to re-use an object - must be implemented in descendent classes. More... | |
virtual void | Dying () |
void | CheckManagement (void) |
void | CheckManagementXY (int x, int y) |
![]() | |
int | GetCurrentStateNo () |
Returns the current state number. More... | |
void | SetCurrentStateNo (int a_num) |
Sets the current state number. More... | |
bool | GetStepDone () |
Returns the step done indicator flag. More... | |
void | SetStepDone (bool a_bool) |
Sets the step done indicator flag. More... | |
virtual void | ReinitialiseObject () |
Used to re-use an object - must be implemented in descendent classes. More... | |
TALMaSSObject () | |
The constructor for TALMaSSObject. More... | |
virtual | ~TALMaSSObject () |
The destructor for TALMaSSObject. More... | |
void | OnArrayBoundsError () |
Used for debugging only, tests basic object properties. More... | |
Public Attributes | |
Skylark_Male * | MyMate |
![]() | |
bool | Paired |
![]() | |
double | m_pesticide_accumulation |
double | m_pcide_conc |
TTypesOfSkState | m_CurrentSkState |
int | Age |
double | m_Size |
int | m_Born_x |
int | m_Born_y |
int | m_MyHome |
The vegetation type where the skylark was born. More... | |
SkTerritories * | m_OurTerritories |
Skylark_Population_Manager * | m_OurPopulationManager |
Protected Member Functions | |
int | st_Flocking () |
int | st_Floating () |
bool | st_Arriving () |
bool | st_Immigrating () |
int | st_Emigrating () |
int | st_TempLeavingArea () |
int | st_Finding_Territory () |
void | st_Dying () |
int | st_CaringForYoung () |
int | st_BuildingUpResources () |
TTypesOfSkState | st_MakingNest () |
int | st_PreparingForBreeding () |
int | st_GivingUpTerritory () |
TTypesOfSkState | st_Laying () |
int | st_StartingNewBrood () |
int | st_EggHatching () |
int | st_Incubating () |
int | st_StoppingBreeding () |
double | GetFood (int time) |
int | CalculateEggNumber () |
int | CalcFoodTime (double target) |
int | GetMigrationMortality () |
double | CheckForFields () |
void | FeedYoung () |
virtual bool | OnFarmEvent (FarmToDo event) |
virtual void | PesticideResponse () |
skSpiralResult | Spiral (int x, int y, int radius) |
skSpiralResult | Spiral2 (int x, int y, int radius) |
![]() | |
virtual double | RemoveEM (double food) |
double | GetVegHindrance (int PolyRef) |
double | GetWeatherHindrance () |
bool | GetBadWeather () |
Extreme weather conditions check. More... | |
![]() | |
bool | DailyMortality (int mort) |
![]() | |
void | CorrectWrapRound () |
Corrects wrap around co-ordinate problems. More... | |
Protected Attributes | |
Skylark_Clutch * | MyClutch |
int | m_Counter1 |
int | m_NestTime |
bool | NestLoc |
double | Resources |
int | EggCounter |
int | m_BreedingAttempts |
int | m_BreedingSuccess |
int | m_EggNumber |
bool | m_pesticide_sprayed_die |
int | m_toowet |
double | m_MinFemaleAcceptScore |
![]() | |
int | GoodWeather |
bool | BSuccess |
double | MyExtractEff |
int | m_pesticide_affected |
skTerritory_struct | MyTerritory |
vector< APoint > * | m_aTerrlist |
![]() | |
int | m_Location_x |
int | m_Location_y |
Landscape * | m_OurLandscape |
![]() | |
int | m_CurrentStateNo |
The basic state number for all objects - '-1' indicates death. More... | |
bool | m_StepDone |
Indicates whether the iterative step code is done for this timestep. More... | |
Skylark_Female::Skylark_Female | ( | int | x, |
int | y, | ||
double | size, | ||
int | age, | ||
SkTerritories * | Terrs, | ||
Landscape * | L, | ||
Skylark_Population_Manager * | SPM, | ||
int | bx, | ||
int | by, | ||
int | mh | ||
) |
References m_BreedingAttempts, m_MinFemaleAcceptScore, MyClutch, MyMate, and ResetBreedingSuccess().
|
virtual |
BeingStep behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
References TAnimal::CheckManagement(), Skylark_Base::m_CurrentSkState, m_MinFemaleAcceptScore, TALMaSSObject::m_StepDone, st_CaringForYoung(), st_Floating(), toss_Destroy, toss_FCaringForYoung, toss_FFindingTerritory, toss_FFloating, toss_FFlocking, toss_FTempLeavingArea, toss_StartingNewBrood, and toss_StoppingBreeding.
|
protected |
References g_msg, Skylark_Male::m_HabitatTable_Size, Skylark_Male::m_InsectTable, Skylark_Adult::MyExtractEff, MyMate, MapErrorMsg::Warn(), and WARN_BUG.
Referenced by st_Incubating().
|
protected |
References m_BreedingAttempts, and random().
Referenced by st_Laying().
|
protected |
References Landscape::CorrectCoords(), TAnimal::m_OurLandscape, Skylark_Adult::MyTerritory, skTerritory_struct::size, Landscape::SupplyElementType(), Landscape::SupplyPolyRef(), Landscape::SupplyVegHeight(), tole_Field, tole_UnsprayedFieldMargin, skTerritory_struct::x, and skTerritory_struct::y.
|
virtual |
EndStep behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
References PesticideResponse().
void Skylark_Female::EstablishTerritory | ( | ) |
References Skylark_Adult::BSuccess, SkTerritories::FemaleOccupy(), TAnimal::m_Location_x, TAnimal::m_Location_y, Skylark_Base::m_OurPopulationManager, Skylark_Base::m_OurTerritories, MyMate, Skylark_Adult::MyTerritory, Skylark_Male::OnPairing(), Skylark_Adult::Paired, skTerritory_struct::ref, Resources, Population_Manager::SimH, Population_Manager::SimW, skTerritory_struct::size, Skylark_Male::Supply_Territory(), skTerritory_struct::x, and skTerritory_struct::y.
Referenced by Skylark_Male::OnReHouse(), and st_Finding_Territory().
|
protected |
Can only get food in daylight - dawn & dusk. Must keep them warm if the weather is bad - the quick version below catagorizes this into good or bad weather
References FoodTripsPerDay, GetFood(), m_NestTime, TAnimal::m_OurLandscape, Skylark_Base::m_pcide_conc, MaxFeedRain, MyMate, Skylark_Male::OnFoodMessage(), random(), Skylark_Adult::RemoveEM(), Skylark_Male::SupplyBroodAge(), Skylark_Male::SupplyBroodSize(), Skylark_Male::SupplyBroodWeight(), Landscape::SupplyDaylength(), Landscape::SupplyRain(), and Landscape::SupplyTemp().
Referenced by st_CaringForYoung(), and st_GivingUpTerritory().
|
protected |
References KcalPerGInsect_kg_inv, Skylark_Male::m_HabitatTable_Size, Skylark_Male::m_InsectTable, Skylark_Adult::MyExtractEff, MyMate, TALMaSSObject::OnArrayBoundsError(), and Skylark_Male::SupplyNoHabitatRefs().
Referenced by FeedYoung(), and st_PreparingForBreeding().
|
protected |
References Skylark_Base::Age, JuvenileReturnMort, Skylark_Base::m_OurPopulationManager, and Skylark_Population_Manager::SupplyF_Mig_Mort().
Referenced by st_Immigrating().
void Skylark_Female::OnBreedingSuccess | ( | ) |
References Skylark_Adult::BSuccess.
Referenced by Skylark_Male::OnPreFledgelingMature(), and Skylark_Male::st_ScaringOffChicks().
|
inline |
Referenced by Skylark_Male::OnAddPreFledgeling().
void Skylark_Female::OnBroodDeath | ( | ) |
References m_Counter1, Skylark_Base::m_CurrentSkState, MyClutch, Skylark_Adult::Paired, and toss_StartingNewBrood.
Referenced by Skylark_Male::OnBroodDeath().
void Skylark_Female::OnClutchDeath | ( | ) |
References g_land, m_Counter1, Skylark_Base::m_CurrentSkState, MyClutch, Skylark_Adult::Paired, toss_StartingNewBrood, and Landscape::Warn().
Referenced by Skylark_Clutch::st_Dying().
void Skylark_Female::OnEggsHatch | ( | ) |
References g_land, Skylark_Base::m_CurrentSkState, MyClutch, MyMate, Skylark_Male::OnEggHatch(), toss_EggHatching, and Landscape::Warn().
Referenced by Skylark_Clutch::st_Hatching().
|
protectedvirtual |
Reimplemented from TAnimal.
References Skylark_Base::AddStriglingMort(), autumn_harrow, autumn_or_spring_plough, autumn_plough, autumn_roll, autumn_sow, burn_straw_stubble, cattle_out, cattle_out_low, cfg_insecticide_direct_mortF, cut_to_hay, cut_to_silage, cut_weeds, Calendar::Date(), deep_ploughing, Landscape::EventtypeToString(), fa_ammoniumsulphate, fa_greenmanure, fa_manure, fa_npk, fa_pk, fa_sludge, fa_slurry, fp_greenmanure, fp_liquidNH3, fp_manganesesulphate, fp_manure, fp_npk, fp_npks, fp_pk, fp_sludge, fp_slurry, fungicide_treat, g_date, g_land, glyphosate, growth_regulator, harvest, hay_bailing, hay_turning, herbicide_treat, hilling_up, insecticide_treat, Skylark_Base::m_CurrentSkState, TAnimal::m_OurLandscape, molluscicide, mow, Skylark_Adult::Paired, pigs_out, product_treat, random(), row_cultivation, sleep_all_day, spring_harrow, spring_plough, spring_roll, spring_sow, straw_chopping, strigling, strigling_sow, stubble_harrowing, swathing, syninsecticide_treat, toss_FDying, toss_GivingUpTerritory, toss_MakingNest, toss_PreparingForBreeding, toss_StartingNewBrood, trial_insecticidetreat, CfgInt::value(), Landscape::Warn(), water, and winter_plough.
void Skylark_Female::OnMaleNeverComesBack | ( | Skylark_Male * | AMale | ) |
References Skylark_Adult::BSuccess, MyMate, and Skylark_Adult::Paired.
Referenced by Skylark_Male::OnPairing(), and Skylark_Male::st_Immigrating().
void Skylark_Female::OnMateDying | ( | ) |
References g_stopdate, Skylark_Base::m_CurrentSkState, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, Skylark_Base::m_OurTerritories, MyClutch, MyMate, Skylark_Adult::MyTerritory, Skylark_Clutch::OnMumGone(), skTerritory_struct::ref, SkTerritories::RemoveFemale(), Landscape::SupplyDayInYear(), toss_FFloating, toss_FFlocking, and Skylark_Population_Manager::WriteSKPOM1().
Referenced by Skylark_Population_Manager::Catastrophe(), and Skylark_Male::st_Dying().
void Skylark_Female::OnMateHomeless | ( | ) |
References Skylark_Adult::BSuccess, g_stopdate, Skylark_Base::m_CurrentSkState, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, MyClutch, MyMate, Skylark_Adult::MyTerritory, Skylark_Clutch::OnMumGone(), Skylark_Adult::Paired, skTerritory_struct::ref, Landscape::SupplyDayInYear(), toss_FFloating, toss_FFlocking, and Skylark_Population_Manager::WriteSKPOM1().
Referenced by Skylark_Male::OnReHouse().
|
inline |
Referenced by Skylark_Population_Manager::CreateObjects().
void Skylark_Female::OnStopFeedingChicks | ( | ) |
References Skylark_Base::m_CurrentSkState, toss_FCaringForYoung, and toss_StartingNewBrood.
Referenced by Skylark_Male::OnPreFledgelingMature(), and Skylark_Male::st_ScaringOffChicks().
|
protectedvirtual |
Reimplemented from Skylark_Base.
References cfg_Skylark_female_Biodegredation, cfg_Skylark_female_NOEL, Skylark_Base::m_pesticide_accumulation, Skylark_Adult::m_pesticide_affected, Skylark_Base::m_Size, and CfgFloat::value().
Referenced by EndStep().
|
virtual |
Reimplemented from Skylark_Adult.
References m_BreedingAttempts, m_MinFemaleAcceptScore, MyClutch, MyMate, Skylark_Adult::ReInit(), and ResetBreedingSuccess().
void Skylark_Female::ResetBreedingSuccess | ( | ) |
References m_BreedingSuccess.
Referenced by ReInit(), Skylark_Female(), st_Immigrating(), and Skylark_Population_Manager::TheBreedingSuccessProbe().
void Skylark_Female::SensibleCopy | ( | ) |
References Skylark_Base::m_CurrentSkState, and toss_FEmigrating.
Referenced by Skylark_Population_Manager::CreateObjects().
|
protected |
|
protected |
|
protected |
Ensures that the bird is not paired on arrival and checks the weather status. If bad weather then returns initiates a transition to st_TempLeaveArea otherwise to st_FindTerritory.
References g_rand_uni, Skylark_Adult::GetBadWeather(), TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, Skylark_Adult::Paired, Landscape::SupplySimAreaHeight(), and Landscape::SupplySimAreaWidth().
Referenced by Step().
|
protected |
The female forages from her home range each day. On 1st April she will make a transition to preparing for breeding which determines the time needed for egg production and nest building.
References April, Breed_Temp_Thresh, EggCounter, g_stopdate, Skylark_Adult::GetBadWeather(), m_MinFemaleAcceptScore, TAnimal::m_OurLandscape, May, MyMate, Skylark_Male::Supply_TerritoryQual(), Landscape::SupplyDayInYear(), and Landscape::SupplyTemp().
Referenced by Step().
|
protected |
Calls Skylark_Female::FeedYoung to get food and give it to the chicks. Once the chicks reach 18 days of age if more breeding is possible then the bird will start a new brood unless it is late in the season or there have been too many breeding attempts in which case she will stop breeding when the chicks are 30 days old. In previous versions there was a bad weather component, but this has been removed since it did not contribute to the POM fit. If future analysis finds a relationship it should be incorporated here.
References FeedYoung(), g_stopdate, m_BreedingAttempts, TAnimal::m_OurLandscape, MyMate, NestLoc, Skylark_Male::SupplyBroodAge(), and Landscape::SupplyDayInYear().
Referenced by BeginStep().
|
protected |
References g_land, Skylark_Base::m_CurrentSkState, TALMaSSObject::m_CurrentStateNo, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, Skylark_Base::m_OurTerritories, MyClutch, MyMate, Skylark_Male::MyMate, Skylark_Adult::MyTerritory, Skylark_Male::OnMateDying(), Skylark_Clutch::OnMumGone(), skTerritory_struct::ref, SkTerritories::RemoveFemale(), Landscape::SupplyDayInYear(), toss_Destroy, Landscape::Warn(), and Skylark_Population_Manager::WriteSKPOM1().
Referenced by Step().
|
protected |
|
protected |
Is called once a day. This state determines the return to breeding areas based on probabilities that alter with date. Once suitable conditions prevail there will be a transition to st_Immigrating.
References Skylark_Base::Age, April, February, g_stopdate, Skylark_Adult::GoodWeather, January, TAnimal::m_OurLandscape, Skylark_Adult::m_pesticide_affected, March, May, random(), Landscape::SupplyDayInYear(), and Landscape::SupplyTemp().
Referenced by Step().
|
protected |
References Skylark_Adult::BSuccess, EstablishTerritory(), g_msg, Skylark_Adult::GetBadWeather(), Skylark_Male::HaveTerritory, TAnimal::m_Location_x, TAnimal::m_Location_y, m_MinFemaleAcceptScore, Skylark_Base::m_OurTerritories, MyMate, skTerritory_struct::nqual, Skylark_Male::OnMateNeverComesBack(), Skylark_Adult::Paired, SkTerritories::Supply_F_Owner(), SkTerritories::Supply_Owner(), Skylark_Male::Supply_Territory(), SkTerritories::SupplyNoTerritories(), MapErrorMsg::Warn(), and WARN_BUG.
Referenced by Step().
|
protected |
References g_stopdate, Skylark_Adult::GetBadWeather(), TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, random(), Landscape::SupplyDayInYear(), Population_Manager::SupplySimH(), and Population_Manager::SupplySimW().
Referenced by BeginStep().
|
protected |
The bird is assumed to move around the area waiting until weather conditions are suitable to begin Emigration, depending upon the time of year. Only arrives here after breeding, so poor conditions will trigger a transition to Emigration. A transition to Emigration will also occur if the bird has not emigrated before October.
References Skylark_Adult::GetBadWeather(), Skylark_Adult::GoodWeather, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, October, September, and Landscape::SupplyDayInYear().
Referenced by Step().
|
protected |
References Skylark_Adult::BSuccess, EggCounter, FeedYoung(), TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, Skylark_Base::m_OurTerritories, MyClutch, MyMate, Skylark_Adult::MyTerritory, NestLoc, Skylark_Male::OnMateLeaving(), Skylark_Clutch::OnMumGone(), Skylark_Adult::Paired, skTerritory_struct::ref, SkTerritories::RemoveFemale(), Skylark_Male::SupplyBroodSize(), Landscape::SupplyDayInYear(), and Skylark_Population_Manager::WriteSKPOM1().
Referenced by Step().
|
protected |
An instantaneous state which determines the chanve of migration mortality. If she does die then she has to inform any old mate that she has gone. If he is already paired with another bird then can just forget him. If not dying then breeding success for this year is reset and the bird transitions to st_Arrival.
References Skylark_Base::Age, cfg_FemaleMinTerritoryAcceptScore, GetMigrationMortality(), m_BreedingAttempts, m_MinFemaleAcceptScore, Skylark_Adult::m_pesticide_affected, MyClutch, MyMate, Skylark_Male::OnMateNeverComesBack(), Skylark_Adult::Paired, random(), ResetBreedingSuccess(), and CfgFloat::value().
Referenced by Step().
|
protected |
Incubation occurs as described in development below. The female spends that time off the nest required to find energy to cover her basal metabolic requirements, plus that energy required to warm the eggs. Incubation continues until the eggs hatch and there is a transition to Care For Young, or the incubation period (MID) is exceeded, at which point the female will Start New Brood. This state can only be left by a call to OnEggHatch being altered on creation of a nestling or to StartNewBrood
References CalcFoodTime(), m_Counter1, m_NestTime, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, m_toowet, MaxFeedRain, Landscape::SupplyDaylength(), Skylark_Population_Manager::SupplyEMi(), and Landscape::SupplyRain().
Referenced by Step().
|
protected |
References Skylark_Clutch::AddEgg(), Skylark_struct::bx, Skylark_struct::by, CalculateEggNumber(), cfg_skylark_pesticide_eggshellreduction, cfg_skylark_pesticide_eggshellreduction_perclutch, cfg_skylark_pesticide_globaleggshellreduction, Skylark_Population_Manager::CreateObjects(), g_msg, g_rand_uni, Skylark_struct::L, m_BreedingAttempts, m_Counter1, m_EggNumber, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, Skylark_Base::m_OurTerritories, Skylark_Adult::m_pesticide_affected, Skylark_struct::mh, skClutch_struct::Mum, MyClutch, MyMate, skClutch_struct::No, Skylark_Clutch::StartDeveloping(), Landscape::SupplyDayInYear(), Landscape::SupplyPesticideType(), Population_Manager::SupplySimH(), Population_Manager::SupplySimW(), Landscape::SupplyVegType(), Landscape::SupplyYearNumber(), Skylark_struct::Terrs, toss_Incubating, toss_Laying, toss_PreparingForBreeding, ttop_eggshellthinning, ttop_ReproductiveEffects, CfgFloat::value(), CfgBool::value(), MapErrorMsg::Warn(), WARN_BUG, Skylark_struct::x, and Skylark_struct::y.
Referenced by Step().
|
protected |
Tests for the necessary territory quality, if OK finds a nest location and builds the nest. Nest attempts are assumed to be breeding attempts.
References g_msg, June, m_BreedingSuccess, m_Counter1, TAnimal::m_Location_x, TAnimal::m_Location_y, m_MinFemaleAcceptScore, TAnimal::m_OurLandscape, Skylark_Adult::m_pesticide_affected, APoint::m_x, APoint::m_y, May, MyMate, NestLoc, Skylark_Male::OnNestLocation(), Skylark_Male::Supply_TerritoryQual(), Landscape::SupplyDayInYear(), Skylark_Male::SupplyNestLoc(), Skylark_Male::SupplyNestValid(), toss_GivingUpTerritory, toss_Laying, toss_MakingNest, toss_PreparingForBreeding, MapErrorMsg::Warn(), and WARN_BUG.
Referenced by Step().
|
protected |
Builds up resources whilst waiting for good enough weather to begin nest building. Transitions to MakingNest or GiveUpTerritory (if too late in the season).
References EggCounter, g_stopdate, GetFood(), m_BreedingAttempts, m_Counter1, TAnimal::m_OurLandscape, Skylark_Adult::RemoveEM(), Resources, Landscape::SupplyDayInYear(), Landscape::SupplyDaylength(), Landscape::SupplyGlobalDate(), Landscape::SupplySnowcover(), and Landscape::SupplyTemp().
Referenced by Step().
|
protected |
Any current nests or clutches are removed. The female assesses the habitat quality of the territory. If still suitable (i.e. above MTQ) she will make a transition to Make Nest, otherwise she will go to Give Up Territory.
References g_stopdate, m_BreedingAttempts, m_Counter1, m_MinFemaleAcceptScore, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, m_toowet, MyClutch, MyMate, NestLoc, Skylark_Clutch::OnMumGone(), st_StoppingBreeding(), Skylark_Male::Supply_TerritoryQual(), Landscape::SupplyDayInYear(), and Skylark_Population_Manager::WriteSKPOM1().
Referenced by Step().
|
protected |
Called when the female stops breeding for the year. Removes the pair bond and tell the male she is leaving. She deregisters her territory ownership and if there has been no breeding success then she forgets the male.
References Skylark_Adult::BSuccess, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, Skylark_Base::m_OurTerritories, MyClutch, MyMate, Skylark_Adult::MyTerritory, Skylark_Male::OnMateLeaving(), Skylark_Clutch::OnMumGone(), Skylark_Adult::Paired, skTerritory_struct::ref, SkTerritories::RemoveFemale(), Landscape::SupplyDayInYear(), and Skylark_Population_Manager::WriteSKPOM1().
Referenced by st_StartingNewBrood(), and Step().
|
protected |
Waits for one week of weather not classified as bad by Skylark_Adult::GetBadWeather
References Skylark_Adult::GetBadWeather(), and Skylark_Adult::GoodWeather.
Referenced by Step().
|
virtual |
Step behaviour - must be implemented in descendent classes.
Reimplemented from TAnimal.
References Calendar::Date(), g_date, g_land, Skylark_Base::m_CurrentSkState, TAnimal::m_Location_x, TAnimal::m_Location_y, TAnimal::m_OurLandscape, Skylark_Base::m_OurPopulationManager, TALMaSSObject::m_StepDone, m_toowet, Skylark_Clutch::Mother, MyClutch, NestLoc, Skylark_Clutch::OnMumGone(), Skylark_Adult::Paired, st_Arriving(), st_BuildingUpResources(), st_Dying(), st_EggHatching(), st_Emigrating(), st_Finding_Territory(), st_Flocking(), st_GivingUpTerritory(), st_Immigrating(), st_Incubating(), st_Laying(), st_MakingNest(), st_PreparingForBreeding(), st_StartingNewBrood(), st_StoppingBreeding(), st_TempLeavingArea(), Landscape::SupplyDayInYear(), Population_Manager::SupplyStateNames(), toss_BuildingUpResources, toss_Destroy, toss_EggHatching, toss_FArriving, toss_FCaringForYoung, toss_FDying, toss_FEmigrating, toss_FFindingTerritory, toss_FFloating, toss_FFlocking, toss_FImmigrating, toss_FTempLeavingArea, toss_GivingUpTerritory, toss_Incubating, toss_Initiation, toss_Laying, toss_MakingNest, toss_PreparingForBreeding, toss_StartingNewBrood, toss_StoppingBreeding, Landscape::Warn(), and Skylark_Population_Manager::WriteSKPOM1().
int Skylark_Female::Supply_BreedingAttempts | ( | ) |
int Skylark_Female::Supply_BreedingSuccess | ( | ) |
|
inline |
Referenced by Skylark_Clutch::st_Developing().
|
inline |
Referenced by Skylark_Clutch::Step().
|
protected |
Referenced by st_BuildingUpResources(), st_GivingUpTerritory(), and st_PreparingForBreeding().
|
protected |
|
protected |
Referenced by ResetBreedingSuccess(), st_MakingNest(), and Supply_BreedingSuccess().
|
protected |
Referenced by OnBroodDeath(), OnClutchDeath(), st_Incubating(), st_Laying(), st_MakingNest(), st_PreparingForBreeding(), and st_StartingNewBrood().
|
protected |
Referenced by st_Laying().
|
protected |
|
protected |
Referenced by FeedYoung(), and st_Incubating().
|
protected |
|
protected |
Referenced by st_EggHatching(), st_Incubating(), st_StartingNewBrood(), and Step().
|
protected |
Skylark_Male* Skylark_Female::MyMate |
Referenced by CalcFoodTime(), Skylark_Population_Manager::Catastrophe(), EstablishTerritory(), FeedYoung(), GetFood(), OnEggsHatch(), OnMaleNeverComesBack(), OnMateDying(), OnMateHomeless(), ReInit(), Skylark_Female(), st_BuildingUpResources(), st_CaringForYoung(), st_Dying(), Skylark_Male::st_Dying(), st_Finding_Territory(), st_GivingUpTerritory(), Skylark_Clutch::st_Hatching(), st_Immigrating(), st_Laying(), st_MakingNest(), st_StartingNewBrood(), and st_StoppingBreeding().
|
protected |
Referenced by st_CaringForYoung(), st_GivingUpTerritory(), st_MakingNest(), st_StartingNewBrood(), and Step().
|
protected |
Referenced by EstablishTerritory(), and st_PreparingForBreeding().